home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / cshell / proto.h < prev    next >
C/C++ Source or Header  |  1994-03-19  |  7KB  |  247 lines

  1. /* main.c */
  2. int main(int argc, char **argv);
  3. void main_exit(int n);
  4. int breakcheck(void);
  5. int dobreak(void);
  6. long Chk_Abort(void);
  7. void _wb_parse(void);
  8. int do_howmany(void);
  9. void breakreset(void);
  10.  
  11. /* comm1.c */
  12. int do_sleep(void);
  13. int do_chgrp(void);
  14. int do_chmod(void);
  15. int do_chown(void);
  16. int do_protect(void);
  17. int do_filenote(void);
  18. int do_cat(void);
  19. char *add_simple_device(char *,char *);
  20. void get_drives(char *);
  21. char *drive_name(char *);
  22. char *oneinfo( char *,int);
  23. int do_info(void);
  24. int do_dir(void);
  25. void lformat( char *s, char *d, struct file_info *info );
  26. int do_quit(void);
  27. int do_echo(void);
  28. int do_source(char *str );
  29. int do_pwd(void);
  30. int do_cd(void);
  31. char *quick_cd( char *buf, char *name, int repeat );
  32. int do_mkdir(void);
  33. int do_mv(void);
  34. int all_args( int (*action)FUNCARG(long,char*,char*), int dirs );
  35. int all_args_n2m( int (*action)FUNCARG(long,char*,char*), int dirs, int aa_from, int aa_to );
  36. int do_search(void);
  37. int do_rm(void);
  38. int do_history(void);
  39. int do_mem(void);
  40. int do_forline(void);
  41. int do_fornum(void);
  42. int do_foreach(void);
  43. int do_forever(char *str);
  44. int do_window(void);
  45. char *dates(struct DateStamp *dss, int flags);
  46. int do_date(void);
  47. void set_cwd(void);
  48.  
  49. /* comm2.c */
  50. int do_abortline(void);
  51. int do_return(void);
  52. int do_strhead(void);
  53. int do_strtail(void);
  54. int do_if(char *garbage, int com);
  55. int do_label(void);
  56. int do_goto(void);
  57. int do_inc(char *garbage, int com);
  58. int do_input(void);
  59. int do_ver(void);
  60. int do_ps(void);
  61. int do_copy(void);
  62. int do_touch(void);
  63. int do_addbuffers(void);
  64. int do_relabel(void);
  65. int do_diskchange(void);
  66. int dofunc(int id, char **av, int ac);
  67. int do_error( void );
  68.  
  69. /* comm3.c */
  70. int do_ln(void);
  71. int do_tee(void);
  72. int do_head(char *garbage, int com);
  73. void man(FILE *f, char *s);
  74. int do_man(void);
  75. int do_assign(void);
  76. char **expand_devs(void);
  77. int do_join(void);
  78. int do_strings(void);
  79. int do_open(void);
  80. int do_close(void);
  81. void myclose(int n);
  82. int do_fileslist(void);
  83. long extOpen(char *name, long mode);
  84. void extClose(long fh);
  85. int do_basename(void);
  86. int do_tackon(void);
  87. int do_resident(void);
  88. int loadres(char *s);
  89. int do_truerun(char *avline, int backflag);
  90. int exists(char *name);
  91. int mounted( char *str );
  92. int do_aset(void);
  93. int do_htype(void);
  94. int do_stack(void);
  95. int do_fault(void);
  96. int eval_rpn(char **av, int ac, int flag);
  97. int do_rpn(char *garbage, int ifflag);
  98.  
  99. /* rehash stuff */
  100. char *get_rehash_prog(char *,char *);
  101. void resolve_multiassign(char *,char ***,long *);
  102. int do_rehash(void);
  103.  
  104. int do_path(void);
  105. int do_pri(void);
  106. int do_strleft(void);
  107. int do_strright(void);
  108. int do_strmid(void);
  109. int do_strlen(void);
  110. int myatoi(char *s, int mmin, int mmax);
  111. int unlatoi(char *s);
  112. int posatoi(char *s);
  113. int do_fltlower(void);
  114. int do_fltupper(void);
  115. int do_linecnt(void);
  116. int do_uniq(void);
  117. int do_rxsend(char *avline);
  118. int do_rxrec(void);
  119. int do_rxreturn(void);
  120. int do_waitport(void);
  121. int do_ascii(void);
  122. void appendslash(char *path);
  123. int do_whereis(void);
  124. int do_usage(void);
  125. int do_menu(void);
  126. void remove_menu(void);
  127. void set_menu(void);
  128. int do_getenv(void);
  129. int do_setenv(void);
  130. char **read_file(FILE *file, int *ac);
  131. void free_file(char **ptr);
  132. int do_qsort(void);
  133. int do_truncate(void);
  134. int do_split(void);
  135. int do_action( char *argline );
  136. int do_class( char *avline );
  137. int do_readfile( void );
  138. int do_writefile( void );
  139.  
  140. /* execom.c */
  141. int isnum(char *);
  142. void *mymalloc(int len);
  143. int exec_command(char *base);
  144. #ifndef isalphanum
  145. int isalphanum(char c);
  146. #endif
  147. char *exec_function(char *str, char **fav, int fac);
  148. int do_help(void);
  149. void exec_every(void);
  150. void show_usage(char *str);
  151. int do_exec(char *str);
  152. char *a0tospace(char *str);
  153. int execute( char *str );
  154. char *find_internal(char *str);
  155. int get_opt(char **av, int *ac, int ccno, int *err);
  156. int hasspace( char *s );
  157. int myfgets( char *buf, FILE *in );
  158. char lastch(char *);
  159. ULONG BtoCStr(char *, BSTR, LONG);
  160. ULONG CtoBStr(char *, BSTR, LONG);
  161.  
  162.  
  163. /* sub.c */
  164. int issep( char s );
  165. char *getclass(char *file);
  166. void seterr(int err);
  167. char *next_word(char *str);
  168. char *compile_av(char **av, int start, int end, char delim, int quote);
  169. void Free(void *ptr);
  170. void add_history(char *str);
  171. char *get_history(char *ptr);
  172. int find_history(char *ptr,int min);
  173. void replace_head(char *str);
  174. void pError(char *str);
  175. int ierror(char *str, int err);
  176. char *ioerror(int num);
  177. struct dirptr *dopen(char *name, int *stat);
  178. int dclose(struct dirptr *dp);
  179. int isdir(char *file);
  180. void free_expand(char **av);
  181. char **expand(char *base, int *pac);
  182. int newrecurse(int mask, char *name, int (*action)FUNCARG(long,char*,char*));
  183. char *strupr(char *s);
  184. char *strlwr(char *s);
  185. struct pattern *compare_preparse( char *wild, int casedep );
  186. int compare_ok( struct pattern *pat, char *name);
  187. void compare_free( struct pattern *pat );
  188. int compare_strings( char *pat, char *str, int casedep );
  189. void expand_all(char *name, FILE *file);
  190. int cmp(struct file_info *s1, struct file_info *s2);
  191. int cmp_case(struct file_info *s1, struct file_info *s2);
  192. int sizecmp(struct file_info *s1, struct file_info *s2);
  193. int datecmp_csh(struct file_info *s1, struct file_info *s2);
  194. int classcmp(struct file_info *s1, struct file_info *s2);
  195. int numcmp( struct file_info *s1, struct file_info *s2 );
  196. void QuickSort(char **av, int n);
  197. void DirQuickSort(char **av,int n,int (*func)(struct file_info *,struct file_info *), int rev, int fac);
  198. int filesize(char *name);
  199. char **and(char **av1, int ac1, char **av2, int ac2, int *ac, int base);
  200. char **without(char **av1, int ac1, char **av2, int ac2, int *ac, int base);
  201. char **or(char **av1, int ac1, char **av2, int ac2, int *ac, int base);
  202. void clear_archive_bit(char *name);
  203. char *itoa( int i );
  204. char *itok( int i );
  205. char *getaction( char *class, char *action );
  206. int doaction( char *file, char *action, char *args );
  207. void *salloc( int len );
  208. void *SAllocMem( long size, long req );
  209. void setioerror( int err );
  210. char *filemap( char *buf, int lcd );
  211. char *safegets( char *buf, FILE *in );
  212. BOOL add_array_list(char ***,long *,char *);
  213. void free_array_list(char **,long);
  214. BOOL SetOwner37(UBYTE *,LONG);
  215.  
  216. /* set.c */
  217. void init_mbase(void);
  218. void set_var(int level, char *name, char *str);
  219. void set_var_mem( int level, char *name, char *str );
  220. void update_sys_var( char *name );
  221. void set_var_n(int level, char *name, char *str, int n);
  222. void *get_var(int level, void *name);
  223. void unset_level(int level);
  224. void unset_var(int level, char *name);
  225. int do_unset_var(char *str, int level);
  226. int do_set_var(char *command, int level);
  227. void push_locals( struct VRoot *newroot );
  228. void pop_locals( void );
  229. int do_local(void);
  230.  
  231. /* rawcon.c */
  232. int newwidth(void);
  233. void initmap(void);
  234. char *rawgets(char line[], char prompt[]);
  235. void prepscroll(int fromtee);
  236. void quickscroll(void);
  237. void setrawcon( long flag, int ievent );
  238. int isconsole( BPTR fh );
  239. int do_keymap( void );
  240.  
  241. /* run.c */
  242. int do_run(char *str, int exec );
  243. char *dofind(char *cmd, char *ext, char *buf, char *path);
  244.  
  245. int setenv(char *var, char *val);
  246.  
  247.